#include "locationapi.h"
#include "location.h"

LocationAPI::LocationAPI()
{
	m_location = new Location();
}

void LocationAPI::setEnvironment(QMainWindow* parentWindow, QWebFrame* webFrame)
{
	m_location->setEnvironment(parentWindow, webFrame);
}

QString LocationAPI::jsObjectName()
{
    return "location";
}

QObject *LocationAPI::jsObjectInstance()
{
    return m_location;
}

QString LocationAPI::jsFileName()
{
    return "location.js";
}

Q_EXPORT_PLUGIN2(locationapi,LocationAPI)
